package juc;

public class SynchronizedDemo {
	private static Object objectLock = new Object();
	public static void main(String args[]){
		new Thread(() -> {
			System.out.println(2);
			synchronized (objectLock) {
				objectLock.notify();
			}
		}).start();
	}
}
